//
//  WeiboNode.h
//  yuikemall
//
//  Created by yuike5 yuike5 on 12-2-6.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WeiboUserNode.h"

@interface WeiboNode : NSObject
{
/**
 [{"from":"手机(t.3g.qq.com)",
 "fromurl":"http://t.qq.com/client.php?t=mobile",
 "head":"http://app.qlogo.cn/mbloghead/7b563a0a2a771ba5f19c",
 "id":"114545123164155",
 "name":"slzony",
 "nick":"左木有风",
 "text":"360旗下多款iOS应用在苹果APP Store遭下架，。",
 "timestamp":1328519477,}]
 
text:微博内容
    
from:来源
fromurl:来源url

id:微博唯一id
    
name:发表人帐户名
nick:发表人昵称
    
timestamp:发表时间
head:发表者头像url */
    NSString* created_at;
    NSString* text;
    NSString* source;
    long long idx;
    WeiboUserNode* user;
    
    BOOL sina_deleted;
    BOOL sina_retweeted;
}

-(id)initWithSinaWeibo:(NSDictionary*)dict;
-(id)initWithTencWeibo:(NSDictionary*)dict;

-(NSDate*) nsdate;

@property (nonatomic, copy) NSString* created_at;
@property (nonatomic, copy) NSString* text;
@property (nonatomic, copy) NSString* source;
@property (nonatomic, assign) long long idx;
@property (nonatomic, retain) WeiboUserNode* user;

@property (nonatomic, assign) BOOL sina_deleted;
@property (nonatomic, assign) BOOL sina_retweeted;
@end
